<include file="Public/header" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<table border="1" width="100%">
<tr>
  <th>LOGO</th>
  <th>社团名称</th>
  <th>所属团队</th>
  <th>社团介绍</th>
  <th>负责人</th>
  <th>成立时间</th>
  <th>注册时间</th>
  <th>状态</th>
  <th>操作</th>
</tr>

<!-- 可以接受users变量 -->

<tr>
<volist name="groups" id="list">
  <td><img src="__PUBLIC__/Uploads/logo/{$list.logo}" width="100px"/></td>
  <!-- __PUBLIC 表示Public目录 -->
  <td><a href="groupDetail?gid={$list.gid}">{$list.groupname}</a></td>
  <td>{$list.team}</td> 
  <td>{$list.intro}</td>
  <td>{$list.leader}</td>
  <td>{$list.createtime}</td>
  <td>{$list.regdate}</td>

    <td>
  	<if condition="$list.state eq 0">未通过审核
  	<else/>已审核
  	</if>
  </td>
  <td>
  	<div class="btn-group">
    <a class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#">
 	   操作<span class="caret"></span></a>
    <ul class="dropdown-menu pull-right">
      <li><a href="groupUpdateInfo?gid={$list.gid}"><i class="icon-edit"></i>修改</a></li>
      <li><a href="groupDelete?gid={$list.gid}"><i class="icon-trash"></i>删除</a></li>
      <li>
      <if condition="$list.state eq 0"><a href="groupCheck?gid={$list.gid}">审核</a>
      <else/><a href="groupUncheck?gid={$list.gid}">取消审核状态</a>
      </if>      
      </li>
    </ul>
 	</div>
  </td>        
</tr>
</volist>
<tr><td align="right" colspan="9"><a href="groupInsertInfo"><button type="button" class="btn btn-default">添加社团</button></a></td></tr>
</table>
<include file="Public/footer" />